<!DOCTYPE html>
<html>

	<head>
		<title>{$name}{$seo_title} - {$site_name}</title>
		<meta name="keywords" content="{$site_seo_keywords}" />
		<meta name="description" content="{$site_seo_description}">
		<tc_include file="Public:head" />
	</head>

	<body>
		<tc_include file="Public:nav" />
		<div class="" style="min-height: 562px;">
			<img class="am-g am-animation-fade am-img-responsive index-bg" src="__TMPL__Public/images/bg.jpg" id="index-bg" />
		</div>
		<div class="am-g am-g-fixed am-list-fixed am-cf list-breadcrumb">
			<tc_include file="Public:left_list" />
			<div class="container-right am-u-md-9 am-fr">
				<div data-am-widget="titlebar" class="am-titlebar am-titlebar-default">
					<php>
						$id = $_GET['id'];
						$term_name = sp_get_term($id)['name'];
					</php>
					<h2 class="am-titlebar-title ">{$term_name}</h2>
				</div>
				<div data-am-widget="list_news" class="am-list-news am-list-news-default">
					<!--列表标题-->
					<php>
						$lists = sp_sql_posts_paged("cid:$cat_id;order:post_date DESC;",10); 
					</php>
					<ul class="am-list">
						<!--缩略图在标题左边-->
						<foreach name="lists['posts']" item="vo">
							<php>
								$smeta=json_decode($vo['smeta'], true);
							</php>
							<if condition="$smeta.thumb neq ''">
								<li class="am-g am-list-item-desced am-list-item-thumbed am-list-item-thumb-left">
									<div class="am-u-sm-4 am-list-thumb">
										<div class="list-img-container">
											<a href="{:leuu('article/index',array('id'=>$vo['object_id'],'cid'=>$vo['term_id']))}" class="am-text-success">
												<img class="" src="/data/upload/{$smeta.thumb}" alt="{$vo.post_title}}" />
											</a>
										</div>
									</div>

									<div class=" am-u-sm-8 am-list-main">
										<h2 class="am-list-item-hd">
											<a href="{:leuu('article/index',array('id'=>$vo['object_id'],'cid'=>$vo['term_id']))}" class="am-text-success">{$vo.post_title}</a>
										</h2>

										<div class="am-list-item-text">{$vo.post_excerpt}</div>

									</div>
								</li>
								<else/>
								<li class="am-g am-list-item-desced">
									<div class=" am-list-main">
										<h2 class="am-list-item-hd">
											<a href="{:leuu('article/index',array('id'=>$vo['object_id'],'cid'=>$vo['term_id']))}" class="am-text-success">{$vo.post_title}</a>
										</h2>
										<div class="am-list-item-text">{$vo.post_excerpt}</div>
									</div>
								</li>
							</if>
						</foreach>
					</ul>
					</div>
					<div class="pagination">
						<ul data-am-widget="pagination" class="am-pagination am-pagination-default am-text-success">
							{$lists.page}
						</ul>
					</div>

				</div>
			</div>
			<tc_include file="Public:footer" />

</html>